import { EIDTADDRESS } from '@/constants/commonType'

const DEFAULT_ADDRESS = {}

export default function address(state = DEFAULT_ADDRESS, action) {
  console.log('action', action)

  switch (action.type) {
    case EIDTADDRESS:
      return { ...state, ...action.payload }
    default:
      return state
  }
}
